
class InvalidQuantityException extends Exception {
    String error;

    public InvalidQuantityException() {
        super();
        error = "invalid quantity";
    }

    public InvalidQuantityException(String err) {
        super(err);
        error = err;
    }

    public String getError() {
        return error;
    }
}

